<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

	<h:head>
		<title>Building HTML in a Bean</title>
		<link rel="stylesheet" type="text/css" href="../08/css/styles.css" />
		<style type="text/css">
			.languages
			{
				font-style: italic;
			}
		</style>
	</h:head>
	 
	<h:body>
		<table border="5">
			<tr>
				<th class="title">Building HTML in a Bean</th>
			</tr>
		</table>
		
		<p/>
		
		<p>Building HTML from a bean getter method is not always bad.
		When you are buliding somehting in a standard format that does not 
		need to change very much, building the output in Java can be 
		simple and reusable.</p>
		
		<h2>First coreservlets.com Developer</h2>
		<ul>
			<li>Level: #{personBean.level}</li>
			<li>First name: #{personBean.firstName}</li>
			<li>Last name: #{personBean.lastName}</li>
			<li>Languages: #{personBean.languageList1}</li>
		</ul>
		
		<h2>Second coreserlets.com Developer</h2>
		<p>
			Our second #{person2Bean.level}-level developer is 
			#{person2Bean.firstName} #{person2Bean.lastName}.
			He is a proficient in
			<h:outputText value="#{person2Bean.languageList2}" escape="false"/>
		</p>
	</h:body>
	 
</html>
